<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <link rel="stylesheet" href="/css/main.css" th:href="@{/css/main.css}" />
</head>
<body>
    <h1>你好像还没有登录,请先登录! login</h1>
<!--    <p th:if="${loginError}" class="error">用户名或者密码错误!</p>-->
    <form th:action="@{/login}" method="post" >
        <label for="username">Username</label>:
        <input type="text" id="username" name="username" autofocus="autofocus" /> <br />
        <label for="password">Password</label>:
        <input type="password" id="password" name="password" /> <br />
        <input type="submit" value="Login" />
    </form>
    <p><a href="/welcome" th:href="@{/welcome}">返回首页!</a></p>
</body>
</html>